﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class OrderInfoConfig : EntityTypeConfiguration<OrderInfo>
    {
        public OrderInfoConfig()
        {
            ToTable("Himall_Orders");
            Property(item => item.CloseReason).HasColumnType("varchar").HasMaxLength(1000);          
            Property(item => item.PaymentTypeName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.RegionFullName).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.ExpressCompanyName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.UserName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.SellerPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.SellerAddress).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.SellerRemark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.UserRemark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.ShipTo).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.CellPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Address).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.ShipOrderNumber).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PaymentTypeGateway).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.GatewayOrderId).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PayRemark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.InvoiceTitle).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.InvoiceCode).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.InvoiceContext).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.OrderRemarks).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.PickupCode).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PlatId).HasColumnType("varchar").HasMaxLength(50);
        }
    }
}
